package Operations;
import Book.Book;
import Book.BookList;

public class DisplayOperation implements IOperation{
    @Override
    public void work(BookList bookList) {
        //显示图书
        System.out.println("显示图书！");
        int size = bookList.getNumBook();
        for (int i = 0; i < size; i++) {
            Book book = bookList.getpos(i);
            System.out.println(book);
        }
    }
}
